
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>views · 驱动管理</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gj">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="init.html" />
    
    
    <link rel="prev" href="../utils.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    概要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../Framework.html">
            
                <a href="../../Framework.html">
            
                    
                    架构
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">src目录</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../api.html">
            
                <a href="../api.html">
            
                    
                    api
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../common.html">
            
                <a href="../common.html">
            
                    
                    common
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../components.html">
            
                <a href="../components.html">
            
                    
                    components
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../filters.html">
            
                <a href="../filters.html">
            
                    
                    filters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../layout.html">
            
                <a href="../layout.html">
            
                    
                    layout
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../mixins.html">
            
                <a href="../mixins.html">
            
                    
                    mixins
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="../model.html">
            
                <a href="../model.html">
            
                    
                    model
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../router.html">
            
                <a href="../router.html">
            
                    
                    router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="../store.html">
            
                <a href="../store.html">
            
                    
                    store
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="../styles.html">
            
                <a href="../styles.html">
            
                    
                    styles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="../types.html">
            
                <a href="../types.html">
            
                    
                    types
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="../utils.html">
            
                <a href="../utils.html">
            
                    
                    utils
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.13" data-path="./">
            
                <a href="./">
            
                    
                    views
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.13.1" data-path="init.html">
            
                <a href="init.html">
            
                    
                    init
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.2" data-path="login.html">
            
                <a href="login.html">
            
                    
                    login
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.3" data-path="drive.html">
            
                <a href="drive.html">
            
                    
                    drive
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.4" data-path="logs.html">
            
                <a href="logs.html">
            
                    
                    logs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.5" data-path="strategy.html">
            
                <a href="strategy.html">
            
                    
                    strategy
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.14" data-path="../config.html">
            
                <a href="../config.html">
            
                    
                    配置文件
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >views</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="views-&#x7EC4;&#x4EF6;&#x5305;&#x3001;&#x89C6;&#x56FE;&#x76EE;&#x5F55;">views &#x7EC4;&#x4EF6;&#x5305;&#x3001;&#x89C6;&#x56FE;&#x76EE;&#x5F55;</h1>
<ul>
<li><p>&#x76EE;&#x5F55;</p>
<ul>
<li><p>drive &#x9A71;&#x52A8;&#x7BA1;&#x7406;</p>
</li>
<li><p>init &#x7BA1;&#x7406;&#x5458;&#x521D;&#x59CB;&#x5316;</p>
</li>
<li><p>login &#x767B;&#x5F55;&#x9875;&#x9762;</p>
</li>
<li><p>logs &#x65E5;&#x5FD7;&#x7BA1;&#x7406;</p>
</li>
<li><p>redirect &#x91CD;&#x5B9A;&#x5411;&#x8DF3;&#x8F6C;&#x9875;&#x9762; =&gt; &#x6B64;&#x9875;&#x9762;&#x4E3B;&#x8981;&#x7528;&#x6765;&#x505A;&#x4E00;&#x4E9B;&#x9875;&#x9762;&#x8DF3;&#x8F6C;&#x4F20;&#x503C;&#x3002;&#x76EE;&#x524D;&#x6682;&#x672A;&#x4F7F;&#x7528;&#xFF0C;&#x65E0;&#x9700;&#x5904;&#x7406;&#x3002;</p>
</li>
</ul>
</li>
<li><p>App.vue &#x6839;&#x7EC4;&#x4EF6;</p>
<blockquote>
<p>&#x56E0;&#x4E3A;Ant&#x9ED8;&#x8BA4;&#x56FD;&#x9645;&#x5316;&#x7528;&#x7684;&#x662F; <em>&#x82F1;&#x6587;</em> &#xFF0C;&#x6240;&#x4EE5;&#x8FD9;&#x91CC;&#x9700;&#x8981;&#x8C03;&#x6574;&#x4E3A;&#x4E2D;&#x6587;&#x72B6;&#x6001;&#x3002;</p>
</blockquote>
<pre class="language-"><code class="lang-typescript">    <span class="token operator">&lt;</span>template<span class="token operator">&gt;</span>
  <span class="token operator">&lt;</span>a<span class="token operator">-</span>locale<span class="token operator">-</span>provider <span class="token operator">:</span>locale<span class="token operator">=</span><span class="token string">&quot;locale&quot;</span><span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span>div id<span class="token operator">=</span><span class="token string">&quot;app&quot;</span><span class="token operator">&gt;</span>
      <span class="token operator">&lt;</span>loader <span class="token operator">:</span>spinning<span class="token operator">=</span><span class="token string">&quot;spinning&quot;</span> fullScreen<span class="token operator">&gt;</span><span class="token operator">&lt;</span><span class="token operator">/</span>loader<span class="token operator">&gt;</span>
      <span class="token operator">&lt;</span>router<span class="token operator">-</span>view <span class="token operator">/</span><span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>
  <span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">-</span>locale<span class="token operator">-</span>provider<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>template<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span>script lang<span class="token operator">=</span><span class="token string">&quot;ts&quot;</span><span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> Component<span class="token punctuation">,</span> Vue <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&quot;vue-property-decorator&quot;</span><span class="token punctuation">;</span> <span class="token comment">//&#x88C5;&#x9970;&#x5668;&#x5F15;&#x5165;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> Action<span class="token punctuation">,</span> Getter <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&quot;vuex-class&quot;</span><span class="token punctuation">;</span> <span class="token comment">//&#x88C5;&#x9970;&#x5668;&#x5F15;&#x5165;</span>
<span class="token keyword">import</span> zhCN <span class="token keyword">from</span> <span class="token string">&quot;ant-design-vue/lib/locale-provider/zh_CN&quot;</span><span class="token punctuation">;</span><span class="token comment">//&#x4E2D;&#x6587;&#x652F;&#x6301;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> Loader <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&quot;@/components&quot;</span><span class="token punctuation">;</span> <span class="token comment">//&#x52A0;&#x8F7D;&#x5168;&#x5C40; loading&#x7EC4;&#x4EF6;</span>
@<span class="token function">Component</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
  components<span class="token operator">:</span> <span class="token punctuation">{</span> Loader <span class="token punctuation">}</span> <span class="token comment">//&#x6CE8;&#x518C;&#x7EC4;&#x4EF6;</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token keyword">class</span> <span class="token class-name">App</span> <span class="token keyword">extends</span> <span class="token class-name">Vue</span> <span class="token punctuation">{</span>
  locale <span class="token operator">=</span> zhCN<span class="token punctuation">;</span>
  @<span class="token function">Getter</span><span class="token punctuation">(</span><span class="token string">&quot;spinning&quot;</span><span class="token punctuation">)</span> <span class="token comment">//&#x83B7;&#x53D6;vuex&#x91CC;&#x7684;&#x5C5E;&#x6027;</span>
  <span class="token keyword">private</span> spinning<span class="token operator">:</span> <span class="token builtin">any</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
</li>
</ul>
<ul>
<li><p>main.ts vue&#x4E3B;&#x5165;&#x53E3;&#x6587;&#x4EF6;</p>
<pre class="language-"><code class="lang-typescript"><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token comment">//&#x89E3;&#x51B3;vue&#x5728;ie&#x7684;&#x517C;&#x5BB9;&#x6027;&#x95EE;&#x9898;</span>
<span class="token keyword">import</span> <span class="token string">&quot;babel-polyfill&quot;</span><span class="token punctuation">;</span>
<span class="token comment">//&#x6839;&#x7EC4;&#x4EF6;&#x5F15;&#x5165;</span>
<span class="token keyword">import</span> App <span class="token keyword">from</span> <span class="token string">&quot;./App.vue&quot;</span><span class="token punctuation">;</span>
<span class="token comment">//&#x8DEF;&#x7531;&#x5F15;&#x5165;</span>
<span class="token keyword">import</span> router <span class="token keyword">from</span> <span class="token string">&quot;./router&quot;</span><span class="token punctuation">;</span>
<span class="token comment">//vuex</span>
<span class="token keyword">import</span> store <span class="token keyword">from</span> <span class="token string">&quot;./store&quot;</span><span class="token punctuation">;</span>
<span class="token comment">// global styles</span>
<span class="token keyword">import</span> <span class="token string">&quot;@/styles/index.less&quot;</span><span class="token punctuation">;</span>
<span class="token comment">//iconfont &#x6682;&#x672A;&#x4F7F;&#x7528;</span>
<span class="token comment">// import &quot;@/assets/icon/iconfont.css&quot;;  </span>
<span class="token comment">// vue-antdesign &#x6309;&#x9700;&#x52A0;&#x8F7D;</span>
<span class="token keyword">import</span> <span class="token string">&quot;@/common/frame&quot;</span><span class="token punctuation">;</span>
<span class="token comment">// interceptor &#x62E6;&#x622A;&#x5668;&#x6CE8;&#x5165;</span>
<span class="token keyword">import</span> <span class="token string">&quot;@/common/interceptor&quot;</span><span class="token punctuation">;</span>

Vue<span class="token punctuation">.</span>config<span class="token punctuation">.</span>productionTip <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>

<span class="token keyword">new</span> <span class="token class-name">Vue</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
  router<span class="token punctuation">,</span>  <span class="token comment">//&#x8DEF;&#x7531;&#x6CE8;&#x518C;</span>
  store<span class="token punctuation">,</span>   <span class="token comment">//vuex &#x6CE8;&#x518C;</span>
  <span class="token function-variable function">render</span><span class="token operator">:</span> <span class="token parameter">h</span> <span class="token operator">=&gt;</span> <span class="token function">h</span><span class="token punctuation">(</span>App<span class="token punctuation">)</span> <span class="token comment">//&#x8DDF;&#x7EC4;&#x4EF6;&#x6E32;&#x67D3;</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">$mount</span><span class="token punctuation">(</span><span class="token string">&quot;#app&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>  <span class="token comment">//&#x6302;&#x8F7D;&#x5230; public/index.html &#x91CC;&#x9762;&#x7684; id&#x4E3A;app&#x7684;Dom&#x5143;&#x7D20;&#x4E0B;</span>
</code></pre>
</li>
</ul>
<ul>
<li>shims-tsx.d.ts  shmis-vue.d.ts  =&gt; TS &#x9488;&#x5BF9;vue&#x7684;&#x58F0;&#x660E;&#x6587;&#x4EF6;&#xFF0C;&#x914D;&#x7F6E;&#x4E00;&#x6B21;&#xFF0C;&#x65E0;&#x9700;&#x5728;&#x5904;&#x7406;</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../utils.html" class="navigation navigation-prev " aria-label="Previous page: utils">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="init.html" class="navigation navigation-next " aria-label="Next page: init">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"views","level":"2.13","depth":1,"next":{"title":"init","level":"2.13.1","depth":2,"path":"src/views/init.md","ref":"src/views/init.md","articles":[]},"previous":{"title":"utils","level":"2.12","depth":1,"path":"src/utils.md","ref":"src/utils.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","-lunr","-search","search-pro","-highlight","prism"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"chapter-fold":{},"search-pro":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Gj","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"驱动管理","language":"zh-hans","gitbook":"3.2.3","description":"驱动管理Web端"},"file":{"path":"src/views/README.md","mtime":"2020-02-24T03:16:59.535Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-03T02:33:20.679Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

